package com.recharge.core.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.recharge.core.entity.GoodsMerchantEntity;
import com.recharge.core.entity.ProviderOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Mapper
public interface ProviderOrderMapper extends BaseMapper<ProviderOrderEntity> {

    public List<Map<String, Object>> totalProviderOrderByProvider(@Param("status")Integer status);

    /**
     * 自定义实现分页
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<ProviderOrderEntity> selectOtherPage(Page<ProviderOrderEntity> page, @Param(Constants.WRAPPER) Wrapper<ProviderOrderEntity> queryWrapper);

}
